//
//  HideNavWebVC.swift
//  elarc01
//
//  Created by elarc on 16/6/3.
//  Copyright © 2016年 elarc. All rights reserved.
//

import UIKit

class HideNavWebVC: ElarcScrollingNavbarViewController {

    var webView:UIWebView?
    override func viewDidLoad() {
        super.viewDidLoad()

        webView = UIWebView()
        webView?.frame = CGRectMake(0, 0, ScreenWidth, ScreenHeight)
        self.view.addSubview(webView!)
        
        let html:NSMutableString = "<html><head></head><body>"
        html.appendString("<h1>The content</h1><p>Long content here</p><p>Some other content here</p>")
        html.appendString("<h1>Other content</h1><p>Long content here</p><p>Some other content here</p>")
        html.appendString("<h1>My content</h1><p>Long content here</p><p>Some other content here</p>")
        html.appendString("</body></html>")
        
        self.webView?.loadHTMLString(html as String, baseURL: nil)
        // Do any additional setup after loading the view.
        self.navigationController?.navigationBar.tintColor = UIColor.whiteColor()
        self.navigationController?.navigationBar.barTintColor = UIColor.redColor()
        self.followScrollView(self.webView!)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
